package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.SalesTraceMapper;
import com.ruoyi.order.domain.SalesTrace;
import com.ruoyi.order.service.ISalesTraceService;

/**
 * 订单状态跟踪Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
@Service
public class SalesTraceServiceImpl implements ISalesTraceService 
{
    @Autowired
    private SalesTraceMapper salesTraceMapper;

    /**
     * 查询订单状态跟踪
     * 
     * @param orderId 订单状态跟踪主键
     * @return 订单状态跟踪
     */
    @Override
    public SalesTrace selectSalesTraceByOrderId(String orderId)
    {
        return salesTraceMapper.selectSalesTraceByOrderId(orderId);
    }

    /**
     * 查询订单状态跟踪列表
     * 
     * @param salesTrace 订单状态跟踪
     * @return 订单状态跟踪
     */
    @Override
    public List<SalesTrace> selectSalesTraceList(SalesTrace salesTrace)
    {
        return salesTraceMapper.selectSalesTraceList(salesTrace);
    }

    /**
     * 新增订单状态跟踪
     * 
     * @param salesTrace 订单状态跟踪
     * @return 结果
     */
    @Override
    public int insertSalesTrace(SalesTrace salesTrace)
    {
        return salesTraceMapper.insertSalesTrace(salesTrace);
    }

    /**
     * 修改订单状态跟踪
     * 
     * @param salesTrace 订单状态跟踪
     * @return 结果
     */
    @Override
    public int updateSalesTrace(SalesTrace salesTrace)
    {
        return salesTraceMapper.updateSalesTrace(salesTrace);
    }

    /**
     * 批量删除订单状态跟踪
     * 
     * @param orderIds 需要删除的订单状态跟踪主键
     * @return 结果
     */
    @Override
    public int deleteSalesTraceByOrderIds(String[] orderIds)
    {
        return salesTraceMapper.deleteSalesTraceByOrderIds(orderIds);
    }

    /**
     * 删除订单状态跟踪信息
     * 
     * @param orderId 订单状态跟踪主键
     * @return 结果
     */
    @Override
    public int deleteSalesTraceByOrderId(String orderId)
    {
        return salesTraceMapper.deleteSalesTraceByOrderId(orderId);
    }
}
